home *** CD-ROM | disk | FTP | other *** search
Makefile | 1994-08-05 | 1.7 KB | 51 lines |
- *** orig/gdb-4.12/gdb/makefile.in Tue Jul 26 00:17:22 1994
- --- src/gdb-4.12/gdb/makefile.in Tue Jul 26 00:23:28 1994
- ***************
- *** 506,539 ****
- # We do this by grepping through sources. If that turns out to be too slow,
- # maybe we could just require every .o file to have an initialization routine
- # of a given name (remote-udi.o -> _initialize_remote_udi, etc.).
- ! init.c: $(OBS) $(TSOBS)
- ! @echo Making init.c
- ! @rm -f init.c-tmp
- ! @echo '/* Do not modify this file. */' >init.c-tmp
- ! @echo '/* It is created automatically by the Makefile. */'>>init.c-tmp
- ! @echo 'void initialize_all_files () {' >>init.c-tmp
- ! @for i in $(OBS) $(TSOBS); do \
- ! filename=`echo $$i | sed \
- ! -e '/^Onindy.o/d' \
- ! -e '/^nindy.o/d' \
- ! -e '/ttyflush.o/d' \
- ! -e '/xdr_ld.o/d' \
- ! -e '/xdr_ptrace.o/d' \
- ! -e '/xdr_rdb.o/d' \
- ! -e '/udr.o/d' \
- ! -e '/udip2soc.o/d' \
- ! -e '/udi2go32.o/d' \
- ! -e '/version.o/d' \
- ! -e '/[a-z0-9A-Z_]*-exp.tab.o/d' \
- ! -e 's/\.o/.c/'` ; \
- ! case $$filename in \
- ! "") ;; \
- ! *) sed <$(srcdir)/$$filename >>init.c-tmp -n \
- ! -e '/^_initialize_[a-z_0-9A-Z]* *(/s/^\([a-z_0-9A-Z]*\).*/ {extern void \1 (); \1 ();}/p' ; ;; \
- ! esac ; \
- ! done
- ! @echo '}' >>init.c-tmp
- ! @mv init.c-tmp init.c
-
- .PRECIOUS: init.c
-
- --- 506,516 ----
- # We do this by grepping through sources. If that turns out to be too slow,
- # maybe we could just require every .o file to have an initialization routine
- # of a given name (remote-udi.o -> _initialize_remote_udi, etc.).
- ! init.c: $(OBS) $(TSOBS) getinit
- ! ./getinit $(OBS) $(TSOBS)
- !
- ! getinit : getinit.o
- ! $(CC) getinit.o -o getinit
-
- .PRECIOUS: init.c
-
-